﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ShiXuLong.Service;
namespace ShiXuLong.Web.Controllers
{
    [Authorize]
    public class UserCenterController : Controller
    {
        FrontDesk fd = new FrontDesk();
        // GET: UserCenter
        public ActionResult Index()
        {
            var list = fd.GetOrder();
            return View(list);
        }
        public ActionResult OrderView(int EvaluationState = 00, int TransactionStatus = 00)
        {
            var list = fd.GetOrder();
            return View(list);
        }
        public ActionResult OrderDetailView(int id)
        {
            var list = fd.GetOrderDetailById(id);
            return View(list);
        }
        /// <summary>
        /// 待发货页面
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult ToSendTheGoodsView(int id=0)
        {

            var list = fd.GetOrderDetailById(id);
            return View(list);
        }
        /// <summary>
        /// 待评价页面
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EvaluateView(int id=0)
        {

            var list = fd.GetOrderDetailByIdEvaluate(id);
            return View(list);
        }
        /// <summary>
        /// 用户信息页面
        /// </summary>
        /// <returns></returns>
        public ActionResult UserDetailView()
        {

            return View();
        }
    }
}